<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
    <link rel="stylesheet" type="text/css" href="/static/css/login.css"/>
    <title>首页</title>
	<script src="/static/js/jquery-3.7.1.min.js"></script>
	<script src="/static/js/common.js"></script>
    <script src="/static/js/login.js"></script>
	<script>
		$(function(){
			$("#loginbtn").click(function(){
				let username = $("#user_name").val();
				if(username == undefined || username == ""){
					$("#errorMsg").html("<font color='red'>用户名不能为空！</font>");
					return;
				}
				let password = $("#pass_word").val();
				if(password == undefined || password == ""){
					$("#errorMsg").html("<font color='red'>密码不能为空</font>");
					return;
				}
				$("#login_form").submit();
			})
		})
	</script>
</head>
<body>
	<!-- 登录面板 -->
	<section class="main">
		<div class="login-type">
			<a class="checked" name="login-pwd">密码登录</a><a name="login-sms">短信码登录</a>
		</div>

		<form class="login-pwd login-panel" autocomplete="off" id="login_form" action="/manager/login/" method="post">
			<div id="errorMsg">{{msg}} </div>

			<input type="text" name="userName" id="user_name" class="inp user" placeholder="账号/邮箱/手机号"/>
			<input type="password" name="password" id="pass_word" class="inp pwd" placeholder="密码"/>
			<!-- 处理密码眼睛 -->
			<span class="eye clos"></span>

			<div class="re">
				<input type="checkbox" name="rememberme" id="remember_me"/>
				<label for="remember_me">下次自动登录</label>
				<a class="find-pass" href="#">忘记密码，立即找回</a>
			</div>
			<button type="button" class="btn-code" id="loginbtn">登录</button>
			<a href="#" class="regist">没有账号？立即注册</a>
		</form>



		<div class="third">
			<span class="lf"></span>第三方登录<span class="rf"></span>
		</div>

		<p class="third">
			<a class="zfb"><span>支付宝</span></a>
			<a class="wx"><span>微信</span></a>
			<a class="qq"><span>QQ</span></a>
		</p>

	</section>

	<footer>
		<p class="decro">主办单位 河南省行政审批和政务信息管理局 备案 豫ICP备10005452号-9 豫公网安备 41010502003436号
			版权所有 河南省行政审批和政务信息管理局 Copyright ©2022 hnzwfw.gov.cn 政务服务线 12345</p>
		<p class="cr">Copyright © 2021-2025 <span class="site">河南省行政审批和政务信息管理局</span> All Rights Reserved.</p>
		<p class="num">沪ICP备14048333号</p>
	</footer>
	<script>
		$(function(){
			//alert(1);
			// 记住账号密码，自动登录
			let rememberme = '{{request.COOKIES.rememberme}}';
			//alert(rememberme);
			if(rememberme){
				$("#user_name").val('{{request.COOKIES.username}}');
				$("#pass_word").val('{{request.COOKIES.password}}');
				$("#remember_me").prop("checked", true);
				$("#login_form").submit();
			}
		})

	</script>
</body>

</html>